#include "gamescene1.h"

GameScene1::GameScene1(QWidget *parent) :
    GameScene(parent)
{
    brick_num=BRICK_NUMBER_1;
    int p;
    int px = 10;
    int py = 0;
    for(p=0;p<7;++p)
    {
        enemies[p]=new hardbrick(px,py);
         px=px+BRICK_LENGTH+BRICK_INTERVAL;
    }
    px=10;
    py=py+BRICK_WIDTH+BRICK_INTERVAL;
    for(p=7;p<14;++p)
    {
       enemies[p]=new brick(px,py);
        px=px+BRICK_LENGTH+BRICK_INTERVAL;
    }
    px=10;
    py=py+BRICK_WIDTH+BRICK_INTERVAL;
    for(p=14;p<21;++p)
    {
       enemies[p]=new brick(px,py);
        px=px+BRICK_LENGTH+BRICK_INTERVAL;
    }
    px=10;
    py=py+BRICK_WIDTH+BRICK_INTERVAL;
    for(p=21;p<brick_num;++p)
    {
        enemies[p]=new hardbrick(px,py);
         px=px+BRICK_LENGTH+BRICK_INTERVAL;
    }
}
